macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export
authorChristoph Reiter <creiter@src.gnome.org>
Tue, 27 Feb 2018 18:53:43 +0000 (19:53 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Tue, 27 Feb 2018 19:04:34 +0000 (20:04 +0100)
The header got included without config.h being included first which resulted in the
wrong _GDK_EXTERN macro being used. As a result some symbols weren't exported
and starting a DnD action would crash in the linker.

This patch adds config.h includes in all places where clang complained about
_GDK_EXTERN redefinitions.

See #32 for more info.

gdk/quartz/GdkQuartzNSWindow.c
gdk/quartz/GdkQuartzView.c
gdk/quartz/gdkdnd-quartz.c

index f6c50bc4f0f59b78ad618cfcc710ce8c3d2fdaad..c5296b12ea8d89c51400afac74942955d6f17072 100644 (file)
@@ -16,6 +16,7 @@
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
 #import "GdkQuartzNSWindow.h"
 #include "gdkquartzwindow.h"
 #include "gdkdnd-quartz.h"
index e945b2fb5e1bb0de239d0279989e65e6e45ecdac..6a20cd06d749c810d857bd5a96a9419c71eb162e 100644 (file)
@@ -17,6 +17,7 @@
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
 #import "GdkQuartzView.h"
 #include "gdkquartzwindow.h"
 #include "gdkprivate-quartz.h"
index 8d16219a57ce78fd21292f9d9f6e64e665fb1d19..5c2c59590ee9daf21b50eb5ce8b7f2b0e46a2837 100644 (file)
@@ -16,6 +16,7 @@
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "config.h"
 #include "gdkdnd.h"
 #include "gdkquartzdnd.h"
 #include "gdkprivate-quartz.h"